package com.stx.test.classArray;

import java.util.Arrays;

/**
 * packageName com.shuangti.test
 *
 * @author YangYi
 * @className Pig
 * @date 2025/8/30
 * @description TODO
 */
public class Pig {
    // 小猪编号
    int num;
    // 小猪名称
    String name;
    // 小猪重量
    double weigth;
    // 小猪年龄
    double age;
    // 小猪健康状态true-健康，false-不健康
    boolean health;

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public double getWeigth() {
        return weigth;
    }

    public void setWeigth(double weigth) {
        this.weigth = weigth;
    }

    public double getAge() {
        return age;
    }

    public void setAge(double age) {
        this.age = age;
    }

    public boolean isHealth() {
        return health;
    }

    public void setHealth(boolean health) {
        this.health = health;
    }
}
